package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 部门
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpDeptment extends Model<JbdpDeptment> {

    private static final long serialVersionUID=1L;

    /**
     * 部门主键
     */
    @TableId("DEPTMENT_ID")
    private String deptmentId;

    /**
     * 部门编码
     */
    @TableField("DEPT_CODE")
    private String deptCode;

    /**
     * 部门名称
     */
    @TableField("DEPT_NAME")
    private String deptName;

    /**
     * 部门简称
     */
    @TableField("SHORT_NAME")
    private String shortName;

    /**
     * 部门负责人ID
     */
    @TableField("PRINCIPAL_ID")
    private String principalId;

    /**
     * 负责人姓名
     */
    @TableField("PRINCIPAL_NAME")
    private String principalName;

    /**
     * 部门电话
     */
    @TableField("TEL")
    private String tel;

    /**
     * 邮箱
     */
    @TableField("EMAIL")
    private String email;

    /**
     * 成立时间
     */
    @TableField("SETUP_DATE")
    private LocalDateTime setupDate;

    /**
     * 最后修改时间
     */
    @TableField("LAST_EDIT_TIME")
    private LocalDateTime lastEditTime;

    /**
     * 排序
     */
    @TableField("ORDER_NO")
    private Integer orderNo;

    /**
     * 状态
     */
    @TableField("STATE")
    private Integer state;

    /**
     * 删除标示
     */
    @TableField("DEL_FLAG")
    private Integer delFlag;

    /**
     * 备用字段1
     */
    @TableField("DEF1")
    private String def1;

    /**
     * 备用字段2
     */
    @TableField("DEF2")
    private String def2;

    /**
     * 备用字段3
     */
    @TableField("DEF3")
    private String def3;

    /**
     * 备用字段4
     */
    @TableField("DEF4")
    private String def4;

    /**
     * 备用字段5
     */
    @TableField("DEF5")
    private String def5;


    public String getDeptmentId() {
        return deptmentId;
    }

    public JbdpDeptment setDeptmentId(String deptmentId) {
        this.deptmentId = deptmentId;
        return this;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public JbdpDeptment setDeptCode(String deptCode) {
        this.deptCode = deptCode;
        return this;
    }

    public String getDeptName() {
        return deptName;
    }

    public JbdpDeptment setDeptName(String deptName) {
        this.deptName = deptName;
        return this;
    }

    public String getShortName() {
        return shortName;
    }

    public JbdpDeptment setShortName(String shortName) {
        this.shortName = shortName;
        return this;
    }

    public String getPrincipalId() {
        return principalId;
    }

    public JbdpDeptment setPrincipalId(String principalId) {
        this.principalId = principalId;
        return this;
    }

    public String getPrincipalName() {
        return principalName;
    }

    public JbdpDeptment setPrincipalName(String principalName) {
        this.principalName = principalName;
        return this;
    }

    public String getTel() {
        return tel;
    }

    public JbdpDeptment setTel(String tel) {
        this.tel = tel;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public JbdpDeptment setEmail(String email) {
        this.email = email;
        return this;
    }

    public LocalDateTime getSetupDate() {
        return setupDate;
    }

    public JbdpDeptment setSetupDate(LocalDateTime setupDate) {
        this.setupDate = setupDate;
        return this;
    }

    public LocalDateTime getLastEditTime() {
        return lastEditTime;
    }

    public JbdpDeptment setLastEditTime(LocalDateTime lastEditTime) {
        this.lastEditTime = lastEditTime;
        return this;
    }

    public Integer getOrderNo() {
        return orderNo;
    }

    public JbdpDeptment setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    public Integer getState() {
        return state;
    }

    public JbdpDeptment setState(Integer state) {
        this.state = state;
        return this;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public JbdpDeptment setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
        return this;
    }

    public String getDef1() {
        return def1;
    }

    public JbdpDeptment setDef1(String def1) {
        this.def1 = def1;
        return this;
    }

    public String getDef2() {
        return def2;
    }

    public JbdpDeptment setDef2(String def2) {
        this.def2 = def2;
        return this;
    }

    public String getDef3() {
        return def3;
    }

    public JbdpDeptment setDef3(String def3) {
        this.def3 = def3;
        return this;
    }

    public String getDef4() {
        return def4;
    }

    public JbdpDeptment setDef4(String def4) {
        this.def4 = def4;
        return this;
    }

    public String getDef5() {
        return def5;
    }

    public JbdpDeptment setDef5(String def5) {
        this.def5 = def5;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.deptmentId;
    }

    @Override
    public String toString() {
        return "JbdpDeptment{" +
        "deptmentId=" + deptmentId +
        ", deptCode=" + deptCode +
        ", deptName=" + deptName +
        ", shortName=" + shortName +
        ", principalId=" + principalId +
        ", principalName=" + principalName +
        ", tel=" + tel +
        ", email=" + email +
        ", setupDate=" + setupDate +
        ", lastEditTime=" + lastEditTime +
        ", orderNo=" + orderNo +
        ", state=" + state +
        ", delFlag=" + delFlag +
        ", def1=" + def1 +
        ", def2=" + def2 +
        ", def3=" + def3 +
        ", def4=" + def4 +
        ", def5=" + def5 +
        "}";
    }
}
